<div class="container">
    <div class="row">
        <form class="col-md-12" role="form" novalidate ng-submit="submitGraph()">
            <div class="row">
                <label class="control-label col-md-2">Start Date:</label>
                <label class="control-label col-md-2">End Date:</label>
                <label class="control-label col-md-8">Stations:</label>
            </div>
            <div class="form-group row">
                <div class="dropdown col-md-2">
                    <a class="dropdown-toggle" id="startDate" role="button" data-toggle="dropdown" data-target="#" href="#">
                        <div class="input-group"><input type="text" class="form-control" data-ng-model="graph.startDate"><span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
                        </div>
                    </a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                        <datetimepicker data-ng-model="graph.startDate" data-datetimepicker-config="{ dropdownSelector: '#startDate', format: 'DD/MM/YYYY, HH:mm' }"/>
                    </ul>
                </div>
                <div class="dropdown col-md-2">
                    <a class="dropdown-toggle" id="endDate" role="button" data-toggle="dropdown" data-target="#" href="#">
                        <div class="input-group"><input type="text" class="form-control" data-ng-model="graph.endDate"><span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
                        </div>
                    </a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                        <datetimepicker data-ng-model="graph.endDate" data-datetimepicker-config="{ dropdownSelector: '#endDate', format: 'DD/MM/YYYY, HH:mm' }"/>
                    </ul>
                </div>
                <div class="col-md-6">
                    <select ui-select2 name="stationSelect" id="stationSelect" ng-model="graph.stations" class="form-control"
                            data-placeholder="Pick a station" multiple>
                        <option ng-repeat="station in stations" value={{station.id}}>{{station.name}}</option>
                    </select>
                </div>
                <div class="col-md-2">
                    <button type="submit" class="btn btn-default">Submit</button>
                </div>
            </div>

        </form>
    </div>

    <div class="row">
        <label class="col-md-12"><input type="checkbox"> Sort values</label>

    </div>
    <div class="row quantityGraph">
        <div cg-busy="graphPromise"></div>

    </div>

    <div>
        <div id="tagsModal" class="modal fade">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Objects in Station</h4>
                    </div>
                    <div class="modal-body">
                        <div class="grid-style" ng-grid="tagsData"></div>
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>Tag Id</th>
                                <th>Object's Id</th>
                                <th>Object's Description</th>
                                <th>Enter Time</th>
                                <th>Leave Time</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="h in tagsData">
                                <td>{{h.tag.id}}</td>
                                <td>{{h.object.objectId}}</td>
                                <td>{{h.object.description}}</td>
                                <td>{{h.startTime}}</td>
                                <td>{{h.lastUpdateTime}}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" data-dismiss="modal" data-value="1">OK</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
    </div>

</div>